package com.example.lean;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    public static  final  String ACTION_SECOND= "com.example.lean.intent.action.SECOND";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void myClick(View v) {
        Intent intent = new Intent();
        intent.setAction("com.example.lean.intent.action.SECOND");
        //intent.setAction(MainActivity.ACTION_SECOND);
        startActivity(intent);
    }
}